<%@page contentType="text/html;charset=UTF-8"%>
<%@ page import="whf.framework.web.Constants"%>

<%@taglib uri="/WEB-INF/tlds/struts-bean.tld" prefix="bean"%>
<%@taglib uri="/WEB-INF/tlds/struts-html.tld" prefix="html"%>
<%@taglib uri="/WEB-INF/tlds/framework.tld" prefix="framework"%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"    "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title><framework:attr source="STRUTS-META" attr="name" /></title>
<link rel="stylesheet" type="text/css" href="<%= request.getContextPath() %>/scripts/ext-1.1/resources/css/ext-all.css" />
<script type="text/javascript" src="<%= request.getContextPath() %>/scripts/ext-1.1/adapter/ext/ext-base.js"></script>
<script type="text/javascript" src="<%= request.getContextPath() %>/scripts/ext-1.1/ext-all.js"></script>
<jsp:include page="/common/inc/select.jsp" />
</head>

<body>
<framework:msg />
<html:form action='<%=  (String)request.getAttribute(Constants.STRUTS_PATH) %>' method="post">
<html:hidden property="webMethod" value="" />
<framework:ext />
<framework:table navPosition="none" pageSize="1" view="FMK_USER_VIEW" displayStyle="form" editable="false">
<framework:caption><span class="whf_object_title"><framework:attr source="STRUTS-META" attr="name" /></span></framework:caption>
</framework:table>
</html:form>
<input type='button' id="showDialogBtn" value='清除缓冲' onclick="cleanColumns()" >

	<div id="dialog1" style="visibility:hidden;position:absolute;top:0px;">
		<div class="x-dlg-hd" id="view_workitems_hours_title">提示信息</div>
		<div class="x-dlg-bd">
			清除成功！
		</div>
	</div>
</body>
<script>
function cleanColumns(){
	window.open("<%= request.getContextPath() %>/common/cleanColumns.jsp", null, "width=300;height=250");
	//DayDialog.showDialog();
}
var DayDialog = function(){
    var dialog, showBtn, view_workitems_hoursDiv;
    return {
        init : function(){
             showBtn = Ext.get('showDialogBtn');
             showBtn.on('click', this.showDialog, this);
        },
       
        showDialog : function(){
            if(!dialog){
                dialog = new Ext.BasicDialog("dialog1", { 
                        autoTabs:false,
                        width:400,
                        height:300,
                        shadow:false,
                        minWidth:0,
                        minHeight:0,
                        proxyDrag: true
                });
                dialog.addKeyListener(27, dialog.hide, dialog);
                dialog.addButton('Close', dialog.hide, dialog);
            }
            dialog.show(showBtn.dom);
        }
    };
}();

//Ext.onReady(DayDialog.init, DayDialog, true);

</script>
</htm>